;
(function () {

  'use strict';

  angular.module('controllers.dataManager.dataQualityMng')
    .controller('flowsheetCtrl', flowsheetCtrl);

  function flowsheetCtrl($scope) {
  	  //进行默认配置
			flowLine.delParameter={
				type:0,
				lineColor:"#DFDFDF",
	    	speed:10,
	    	flow0color:'rgba(0, 150, 242,1)',
	    	flow1color:'rgba(0, 150, 242,0)'
			}
			//进行各线条配置
			$("#c1").flowLine({speed:50}).beginAnimation(false);
			$("#c2").flowLine({speed:50}).beginAnimation(false);
			$("#c3").flowLine({
				speed:50,
	    	flow0color:'rgba(255, 96, 76,1)',
	    	flow1color:'rgba(255, 96, 76,0)'
	    }).beginAnimation(false);
			$("#c4").flowLine({
				speed:50,
	    	flow0color:'rgba(255, 191, 0,1)',
	    	flow1color:'rgba(255, 191, 0,0)'
			}).beginAnimation(false);
			$("#c5").flowLine({
				speed:50,
	    	flow0color:'rgba(39, 175, 228,1)',
	    	flow1color:'rgba(39, 175, 228,0)'
			}).beginAnimation(false);
			$("#c6").flowLine({type:1}).beginAnimation(false);
			$("#c7").flowLine({type:1}).beginAnimation(false);
			$("#c8").flowLine({type:2}).beginAnimation(false);
			var c9=$("#c9").flowLine({
				type:1,
				speed:50,
	    	flow0color:'rgba(191, 160, 219,1)',
	    	flow1color:'rgba(191, 160, 219,0)',
				endCallbak:function(){
	    		c10.beginAnimation(true);
	    	}
			});
			var c10=$("#c10").flowLine({
				speed:50,
	    	flow0color:'rgba(191, 160, 219,1)',
	    	flow1color:'rgba(191, 160, 219,0)',
				arrow:false,
	    	endCallbak:function(){
	    		c9.beginAnimation(true);
	    	}
			}).beginAnimation(true);
			
  }
})();